#ifndef _OH_SENSOR_H
#define	_OH_SENSOR_H
/*******************************************************************************
 **  Name: sensor.h                                                           **
 **  Description:                                                             **
 **                                                                           **
 **  CDDL: Open Source Initiative (OSI) Approved License                      **
 **                                                                           **
 **  Copyright (c) 2009-2010 Barry "Gian" James  <bjames@munixos.net>         **
 **  All rights reserved.                                                     **
 **                                                                           **
 **  The contents of this file are subject to the terms of the CDDL:          **
 **  Common Development and Distribution License (the "License").             **
 **  You may not use this file except in compliance with the License.         **
 **                                                                           **
 **  You can obtain a copy of the license at $PROJECT_ROOT/LICENSE            **
 **  or http://www.opensolaris.org/os/licensing.  This code is Open Source    **
 **  and you are free to use it within the confines of the license, even      **
 **  for your own closed-source commercial projects, as long as you follow    **
 **  the terms set forth in the CDDL.                                         **
 **                                                                           **
 **  When distributing Covered Code, include this CDDL HEADER in each         **
 **  file and include the License file at $PROJECT_ROOT/LICENSE.              **
 **  If applicable, add the following below this CDDL HEADER, with the        **
 **  fields enclosed by brackets "[]" replaced with your own identifying      **
 **  information: Portions Copyright [yyyy] [name of copyright owner]         **
 **                                                                           **
 ******************************************************************************/
// Modified $DateTime$ by $Author$
#define _sensor_h_ID    "$Id$"

#include "component.h"

enum class SensorType
{ vibration, chemical, EMF, environ, fluid, radiation,
  motion, optical, pressure, force, temp, proximity, max
};

class Sensor : public Component
{
public:
    Sensor();
    Sensor(const char * n, ComponentType t, SensorType st, uint8 i = 0);
    Sensor(const Sensor& orig);
    ~Sensor();

    void *  Measure() { return NULL; }

private:
    SensorType      stype;

};


#define SENSOR_SEISMOMETER
#define SENSOR_MICROPHONE
#define SENSOR_CO2
#define SENSOR_SAW      // surface acoustic wave
#define SENSOR_SMOKE
#define SENSOR_AMMETER
#define SENSOR_HALL
#define SENSOR_OHM
#define SENSOR_VOLT
#define SENSOR_SIGNAL_DIR_FINDER
#define SENSOR_FLUID_LVL
#define SENSOR_AIRFLOW
#define SENSOR_GEIGER
#define SENSOR_NEUTRON
#define SENSOR_SPEED
#define SENSOR_DIRECTION
#define SENSOR_ALTIMETER
#define SENSOR_GYRO
#define SENSOR_ACCELEROMETER
#define SENSOR_INCLINOMETER
#define SENSOR_RANGEFINDER
#define SENSOR_TILT
#define SENSOR_LINEAR_ENC       // linear encoder
#define SENSOR_IMAGE
#define SENSOR_IR
#define SENSOR_PHOTODIODE
#define SENSOR_PHOTOTRANS       // photo transistor
#define SENSOR_LDR
#define SENSOR_BAROMETER
#define SENSOR_FORCE            // load cell
#define SENSOR_NUCLEAR_DENSITY
#define SENSOR_TEMPERATURE
#define SENSOR_REEDSWITCH
#define SENSOR_PIR





#endif	/* _OH_SENSOR_H */

